<div class="page table-section" data-page="exceptionDetailInfo" id="exceptionDetailInfo">
	<p class="location">
		当前位置:
		<label class="locationInfo">异常管理>异常信息详情</label>
	</p>
	<div class="exceptionDetailInfoContent" action="updateAbnormal">
		<div class="dataTitle">异常基本信息：
			<div class="topBtn"></div>
		</div>
		<div class="dataline">
			<input class="financeId" type="hidden" name="financeId" />
			<input type="hidden" name="abnormalId" />
			<input type="hidden" name="abnormalSourceId" />
			<div>异常单号：
				<input class="abnormalNumber" type="text" disabled="disabled" name="abnormalNumber" />
			</div>
			<div>发生时间：
				<input readonly="readonly" onclick="WdatePicker({})" type="text" name="happenDate" />
			</div>
			<div>发生地点：
				<input type="text" name="happenAddress" />
			</div>
		</div>
		<div class="dataline">
			<div>上报时间：
				<input onclick="WdatePicker({})" readonly="readonly" type="text" name="reportDate" />
			</div>
			<div>上报单位：
				<input type="text" name="reportDepartment" />
			</div>
			<div>单据类型：
				<select name="voucherType">
					<option>业务委托单</option>
				</select>
			</div>
		</div>
		<div class="dataline">
			<div><span class="requiredInput">*</span>异常费用 ：
				<input isNULL="1" codeName="异常费用" class="exceptionRadio1" type="radio" name="expenseState" value="1" /> 有费用 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
				<input type="radio" class="exceptionRadio2" name="expenseState" value="0" /> 无费用 </div>
			<div><span class="requiredInput">*</span>异常类型：
				<select isNULL="1" codeName="异常类型" name="abnormalState">
					<option value="0">未知</option>
					<option value="1">货损</option>
					<option value="2">丢失</option>
				</select>
			</div>
			<div><span class="requiredInput">*</span>单据编号：
				<input isNULL="1" codeName="单据编号" type="text" name="financeNumber" />
			</div>
		</div>
		<div class="dataline">
			<div>紧急程度：
				<select name="urgency">
					<option>常规</option>
					<option>紧急</option>
					<option>特急</option>
				</select>
			</div>
			<div>客户：
				<input type="text" name="customer" />
			</div>
			<div>上报人：
				<input type="text" name="reportor" />
			</div>
		</div>
		<div class="dataline">
			<div><span style="font-weight: bold;">异常环节</span>：
				<select name="abnormalType">
					<option value="1">理货异常</option>
					<option value="2">签收异常</option>
					<option value="3">扣货异常</option>
					<option value="4">运输异常</option>
				</select>
			</div>
			<div><span class="requiredInput">*</span><span style="font-weight: bold;">异常量</span>：
				<input isNULL="1" codeName="异常量" style="width: 151px;" type="text" name="quantity" /><select name="unit" style="width: 47px; border-left: none;">
					<option>箱</option>
					<option>吨</option>
				</select>
			</div>
			<div>填报人：
				<input type="text" name="fill" />
			</div>
		</div>
		<div class="dataline">
			<div><span class="requiredInput">*</span>责任划分：
				<select isNULL="1" codeName="责任划分" name="blame">
					<option>主责</option>
					<option>副责</option>
					<option>全责</option>
				</select>
			</div>
			<div><span class="requiredInput">*</span>估损费用：
				<input isNULL="1" codeName="估损费用" type="text" name="assessment" />
			</div>
			<div>所属部门/车队：
				<input type="text" name="department" />
			</div>
		</div>
		<div class="dataline">
			<div>操作部门：
				<input type="text" name="operateDepartment" />
			</div>
			<div>操作单位：
				<input type="text" name="operateUnit" />
			</div>
			<div style="width: 12%;">是否标识风险：
				<input type="checkbox" name="riskEnabled" class="riskEnabled" />
			</div>
		</div>
		<div class="dataTitle riskInfo none">风险信息：</div>
		<div class="addRisk riskInfo none">增加</div>
		<div style="margin-left: 48px;" class="dataline riskInfo none">

			<table class="riskListBody" style="width: 100%;">
				<tr class="table_title">
					<th>风险类别</th>
					<th>风险名称</th>
					<th>风险描述</th>
					<th>风险策略</th>
					<th>风险等级</th>
					<th>识别人</th>
					<th>识别时间</th>
					<th>操作</th>
				</tr>
				<tbody id="riskListBody"></tbody>
				<script type="text/template" id="riskListTpl">
					{@each datas as it} {@each it.abnormalRisks as item}
					<tr abnormalRiskId="${item.abnormalRiskId}">
						<td>
							<select class="riskType" value="${item.riskType}"></select>
						</td>
						<td>${item.riskName}</td>
						<td>${item.description}</td>
						<td>
							<select class="strategy" value="${item.strategy}"></select>
						</td>
						<td>
							<select class="riskGrade" value="${item.riskGrade}"></select>
						</td>
						<td>${item.distinguish}</td>
						<td>${item.distinguishDate}</td>
						<td><a href="javascript:void(0)" class="riskDetail">详情</a>
							{@if item.settlementState < 1}
								<a href="javascript:void(0)" class="riskdeal">处理</a>
							{@/if}
						</td>
					</tr>
					{@/each} {@/each}
				</script>
			</table>

		</div>
		<div class="dataTitle">运输信息：</div>
		<div class="dataline">
			<div>牵引车号：
				<input type="text" name="tractor" />
			</div>
			<div>挂车号：
				<input type="text" name="trailer" />
			</div>
			<div>主驾：
				<input type="text" name="mainDrive" />
			</div>
		</div>
		<div class="dataline">
			<div>副驾：
				<input type="text" name="copilot" />
			</div>
		</div>
		<div class="dataTitle">异常货箱：</div>
		<div style="margin-left: 48px;">
			<table id="exceptionDetailBulkstockBody">
			</table>
			<script type="text/template" id="exceptionDetailBulkstockTpl">
				<tr>
					<th>箱号</th>
					<th>货物规格</th>
					<th>数量-体积-重量</th>
					<th>异常</th>
					<th>异常录音</th>
					<th>异常图片</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
				{@each datas as it} {@each it.abnormalInventories as item}
				<tr abnormalInventoryId="${item.abnormalInventoryId}" caseNumber="${item.containerInventory.caseNumber}" inventoryId="${item.inventoryId}">
					<input type="text" value="${item.containerInventory.signSoundRecorde}" />
		</div>
		<input type="text" value="${item.containerInventory.signAbnormalFile}" />
	</div>
	<td>${item.containerInventory.caseNumber}</td>
	<td>
		{@each item.containerInventory.containerBulkstocks as that} ${that.bulkstockName}-${that.specification}
		<br /> {@/each}
	</td>
	<td>
		{@each item.containerInventory.containerBulkstocks as that} ${that.quantity}(${that.unit})-${that.volume}(m³)-${that.weight}(吨)
		<br /> {@/each}
	</td>
	<td>${getValueByKey(11, item.containerInventory.abnormalState)}</td>
	<td>
		<!--<audio preload="auto" src="/finance/api/v1.0/downloadFile.file?fileUuid=${item.containerInventory.tallyExSoundRecorde}">
		</audio>
		<audio preload="auto" src="/finance/api/v1.0/downloadFile.file?fileUuid=${item.containerInventory.signSoundRecorde}"></audio>-->
		<object width="50" data="/finance/api/v1.0/downloadFile.file?fileUuid=${item.containerInventory.tallyExSoundRecorde}"></object>
		<object width="50" data="/finance/api/v1.0/downloadFile.file?fileUuid=${item.containerInventory.signSoundRecorde}"></object>
	</td>

	<td>
		<input type="hidden" id="abnormalImages" value="${item.containerInventory.tallyExAbnormalFile}" />
		<input type="hidden" id="signAbnormalFile" value="${item.containerInventory.signAbnormalFile}" />
	</td>
	<td>${getValueByKey(49, item.containerInventory.latestAbnormalResult)}</td>
	{@if item.containerInventory.latestAbnormalResult == 0}
	<td style="position: relative;"><a class="exceptionInventoryDetail">详情</a>
		<div class="inventoryNavList"><a class="normalAbnormal">监管</a><a class="returnAbnormal">退货</a><a class="exchangeAbnormal">换箱</a><a class="adjustAbnormal">调额</a><a class="handleAbnormal">处置</a></div>
	</td>
	{@else}
	<td style="position: relative;"><a class="exceptionInventoryDetail">详情</a>
	</td>
	{@/if}
	</tr>
	{@/each} {@/each}
	</script>
	<div class="dataTitle" style="margin-left: 0;">处理跟踪过程</div>
	<div id="exceptionBody_1"></div>
	<script type="text/template" id="exceptionTpl_1">
		<div class="exceptionTablesNav">
			<a class="exceptionTablesNav-active exceptionTablesNavItem" exceptionBody="exceptionBody1">异常调查</a><a class="exceptionTablesNavItem" exceptionBody="exceptionBody2">责任人处理</a><a class="exceptionTablesNavItem" exceptionBody="exceptionBody3">整改总结</a><a class="exceptionTablesNavItem" exceptionBody="exceptionBody4">人员伤亡</a><a class="exceptionTablesNavItem" exceptionBody="exceptionBody5">异常情况(货品/设备)</a><a class="exceptionTablesNavItem" exceptionBody="exceptionBody6">异常跟踪</a><a class="exceptionTablesNavItem"
			exceptionBody="exceptionBody7">异常费用</a>
			<div class="addException none">增加</div>
		</div>
		<div class="exceptionTablesContent">
			<div style="margin-left: 20px; margin-right: 20px; margin-bottom: 20px;">
				<table class="exceptionBody exceptionBody1">
					<tr>
						<th>调查机构</th>
						<th>开始时间</th>
						<th>结束时间</th>
						<th>调查人员</th>
						<th>认定事故责任</th>
						<th>操作</th>
					</tr>
					{@each datas as it} {@each it.abnormalSurveys as item}
					<tr abnormalSurveyId="${item.abnormalSurveyId}">
						<td>${item.surveyMechanism}</td>
						<td>${item.startDate}</td>
						<td>${item.endDate}</td>
						<td>${item.surveyMan}</td>
						<td>${item.blame}</td>
						<td>
							{@if item.authenticatDateTime === ""}
							<a class="detail">详情</a> <a class="consentAbnormalSurvey">确认</a> {@else}
							<a class="detail">详情</a> {@/if}
						</td>
					</tr>
					{@/each} {@/each}
				</table>
				<table class="exceptionBody none exceptionBody2">
					<tr>
						<th>责任人</th>
						<th>所属车队/部门</th>
						<th>所属公司</th>
						<th>职位</th>
						<th>责任判定</th>
						<th>处理方式</th>
						<th>金额</th>
						<th>操作</th>
					</tr>
					{@each datas as it} {@each it.abnormalBlames as item}
					<tr abnormalBlameId="${item.abnormalBlameId}">
						<td>${item.blameMan}</td>
						<td>${item.deparment}</td>
						<td>${item.company}</td>
						<td>${item.position}</td>
						<td>
							${getValueByKey(19,item.liability)}
						</td>
						<td>
							${getValueByKey(16,item.handleMode)}
						</td>
						<td>${item.abnormalAmount}</td>
						<td>
							{@if item.authenticatDateTime === ""}
							<a class="detail">详情</a> <a class="consentAbnormalBlame">确认</a> {@else}
							<a class="detail">详情</a> {@/if}
						</td>
					</tr>
					{@/each} {@/each}
				</table>
				<table class="exceptionBody none exceptionBody3">
					<tr>
						<th>事故处理情况</th>
						<th>事故整改情况</th>
						<th>事故总结</th>
						<th>操作</th>
					</tr>
					{@each datas as it} {@each it.abnormalCorrectives as item}
					<tr abnormalCorrectiveId="${item.abnormalCorrectiveId}">
						<td>${item.handle}</td>
						<td>${item.corrective}</td>
						<td>${item.summarize}</td>
						<td>
							{@if item.authenticatDateTime === ""}
							<a class="detail">详情</a> <a class="consentAbnormalCorrective">确认</a> {@else}
							<a class="detail">详情</a> {@/if}
						</td>
					</tr>
					{@/each} {@/each}
				</table>
				<table class="exceptionBody none exceptionBody4">
					<tr>
						<th>姓名</th>
						<th>性别</th>
						<th>人员类型</th>
						<th>车队/部门</th>
						<th>所属公司</th>
						<th>年龄</th>
						<th>工龄</th>
						<th>工种</th>
						<th>伤害部位</th>
						<th>伤害性质</th>
						<th>赔偿金额</th>
						<th>操作</th>
					</tr>
					{@each datas as it} {@each it.abnormalCasualties as item}
					<tr abnormalCasualtyId="${item.abnormalCasualtyId}">
						<td>${item.fullName}</td>
						<td>
							{@if item.sex===1} 男 {@else if item.sex===2} 女 {@/if}
						</td>
						<td>
							{@if item.mold===1} 内部人员 {@else if item.mold===2} 供应商 {@else if item.mold===3} 其他 {@/if}
						</td>
						<td>${item.department}</td>
						<td>${item.company}</td>
						<td>${item.age}</td>
						<td>${item.workingAge}</td>
						<td>${item.workingType}</td>
						<td>${item.bodyPart}</td>
						<td>
							${getValueByKey(36,item.nature)}
						</td>
						<td>${item.abnormalAmount}</td>
						<td>
							{@if item.authenticatDateTime === ""}
							<a class="detail">详情</a> <a class="consentAbnormalCasualty">确认</a> {@else}
							<a class="detail">详情</a> {@/if}
						</td>
					</tr>
					{@/each} {@/each}
				</table>
				<table class="exceptionBody none exceptionBody5">
					<tr>
						<th>设备编号</th>
						<th>设备名称</th>
						<th>所属公司</th>
						<th>损坏描述情况</th>
						<th>损坏赔偿金额</th>
						<th>损坏性质</th>
						<th>单证号</th>
						<th>操作</th>
					</tr>
					{@each datas as it} {@each it.abnormalEquipments as item}
					<tr abnormalEquipmentId="${item.abnormalEquipmentId}">
						<td>${item.serialNumber}</td>
						<td>${item.equipmentName}</td>
						<td>${item.company}</td>
						<td>${item.damage}</td>
						<td>${item.abnormalAmount}</td>
						<td>
							${getValueByKey(36,item.nature)}
						</td>
						<td>${item.voucher}</td>
						<td>
							{@if item.authenticatDateTime === ""}
							<a class="detail">详情</a> <a class="consentAbnormalEquipment">确认</a> {@else}
							<a class="detail">详情</a> {@/if}
						</td>
					</tr>
					{@/each} {@/each}
				</table>
				<table class="exceptionBody none exceptionBody6">
					<tr>
						<th>操作类别</th>
						<th>时间</th>
						<th>责任人</th>
						<th>责任判定</th>
						<th>操作人</th>
						<th>异常等级</th>
						<th>人员伤害/设备损坏性质</th>
						<th>费用类型</th>
						<th>金额</th>
						<th>单证号</th>
						<th>操作</th>
					</tr>
					{@each datas as it} {@each it.abnormalTracks as item}
					<tr abnormalSourceId="${item.abnormalSourceId}" abnormalSource="${item.abnormalSource}">
						<td>${getValueByKey(15, item.abnormalSource)}</td>
						<td>${item.createDateTime}</td>
						<td>${item.blameMan}</td>
						<td>${getValueByKey(19,item.liability)}</td>
						<td>${item.reportor}</td>
						<td>${getValueByKey(16,item.accidents)}</td>
						<td>${getValueByKey(36,item.nature)}</td>
						<td>${getValueByKey(4,item.expenditure)}</td>
						<td>${item.abnormalAmount}</td>
						<td>${item.voucher}</td>
						<td><a class="detail">详情</a></td>
					</tr>
					{@/each} {@/each}
				</table>
				<table class="exceptionBody none exceptionBody7">
					<tr>
						<th>费用单据</th>
						<th>费用类型</th>
						<th>付款方</th>
						<th>收款方</th>
						<th>金额</th>
						<th>款项说明</th>
						<th>操作</th>
					</tr>
					{@each datas as it} {@each it.abnormalExpenses as item}
					<tr abnormalExpenseId="${item.abnormalExpenseId}">
						<td>${item.voucher}</td>
						<td>${getValueByKey(4, item.expenditure)}</td>
						<td>${item.disbursementName}</td>
						<td>${item.receiptName}</td>
						<td>&#65509;${item.abnormalAmount}</td>
						<td>${item.remark}</td>
						<td>
							{@if item.authenticatDateTime === ""}
							<a class="detail">详情</a> <a class="abnormalExpenseConsent">确认</a> {@else}
							<a class="detail">详情</a> {@/if}
						</td>
					</tr>
					{@/each} {@/each}
				</table>
			</div>
		</div>
	</script>
</div>
</div>
<div id="popdialog1"></div>
<div id="showImage"></div>
</div>